/*******************************************************************************
 * Copyright (c) 2004, 2007 Mylyn project committers and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *******************************************************************************/

package org.eclipse.mylyn.rememberthemilk.core;

import org.eclipse.mylyn.rememberthemilk.core.model.RTMSearch;

//TODO: don't think this is needed anymore
/**
 * @author Steffen Pingel
 */
public class RTMRepositoryQuery {

	public RTMRepositoryQuery(String repositoryUrl, String queryUrl, String description) {
		//super(description);

		/*assert queryUrl.startsWith(repositoryUrl + ITracClient.QUERY_URL); */

//		setRepositoryUrl(repositoryUrl);
	//	setUrl(queryUrl);
	}

	public String getRepositoryKind() {
		return RTMCorePlugin.REPOSITORY_KIND;
	}

	/*public String getQueryParameter() {
		String url = getUrl();
		int i = url.indexOf(ITracClient.QUERY_URL);
		if (i == -1) {
			return null;
		}
		return url.substring(i + ITracClient.QUERY_URL.length());
	}*/

	/**
	 * Creates a <code>TracSearch</code> object from this query.
	 */
	public RTMSearch getRTMSearch() {
//		RTMSearch search = new RTMSearch();
//		String url = getUrl();
//		if (url != null) {
//			search.fromUrl(url);
//		}
		return null;//search;
	}

}
